package com.ruoyi.work.service;

import com.ruoyi.work.domain.WorkProject;

import java.util.List;

/**
 * @Author: MMDZ
 * @Desc:
 */
public interface IWorkProjectService {
    /**
     * 查询所有项目配置列表 - 条件 分页
     *
     * @param workProject
     * @return
     */
    List<WorkProject> selectWorkProjectList(WorkProject workProject);

    /**
     * 查询所有项目配置列表
     *
     * @return
     */
    List<WorkProject> selectProjectAll();

    /**
     * 根据id查询项目配置详情
     *
     * @param projectId
     * @return
     */
    WorkProject selectWorkProjectById(Long projectId);

    /**
     * 项目代码是否重复
     *
     * @param workProject
     * @return
     */
    String checkProjectCodeUnique(WorkProject workProject);

    /**
     * 新增
     *
     * @param workProject
     * @return
     */
    int insertWorkProject(WorkProject workProject);

    /**
     * 修改
     *
     * @param workProject
     * @return
     */
    int updateWorkProject(WorkProject workProject);

    /**
     * 删除
     *
     * @param projectIds
     * @return
     */
    int deleteWorkProjectByIds(Long[] projectIds);

    /**
     * 统计项目里是否包含项目
     *
     * @param projectId
     * @return
     */
    int countProjectFillById(Long projectId);
}
